import time

cdef double start_time, end_time, elapsed_time
cdef long i

# 记录开始时间
while True:
    start_time = time.time()
    # 放置你想要测量运行时间的代码
    # 示例代码：简单的计算密集型操作
    for n in range(1000000):
        for i in range(1000000000):
            1 + 1

    # 记录结束时间
    end_time = time.time()


    # 计算运行时间
    elapsed_time = end_time - start_time
    print(f"The code ran in {elapsed_time} seconds.")